package com.video.information.ui.my

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.video.information.R
import com.video.information.extension.setOnClickListener
import com.video.information.ui.common.ui.BaseFragment
import kotlinx.android.synthetic.main.fragment_my.*

class MyFragment : BaseFragment() {
    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View {
        return onCreateView(inflater.inflate(R.layout.fragment_my, container, false))
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        setOnClickListener(img_header, rl_collect, rl_skin, rl_logout) {
            when(this) {
                img_header -> {}
                rl_collect -> {}
                rl_skin -> {}
                rl_logout -> {}
            }
        }
    }

    companion object {
        fun newInstance() = MyFragment()
    }
}